package com.example.demo.feignClient;

import com.example.demo.entity.ResultMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author user
 */
@FeignClient(name = "user-service")
public interface UserClient {

    /**
     * 新增订单
     *
     * @param userId
     * @param amount
     * @param companyId
     * @return
     */
    @PostMapping("/user/updateUserOrderAmount")
    ResultMsg updateUserOrderAmount(@RequestParam("userId") Long userId,
                                    @RequestParam("amount") int amount,
                                    @RequestParam("companyId") Byte companyId);
}
